package com.waste.game.service;

import com.waste.game.dao.VideoUserDao;
import com.waste.game.entity.entitiytv.VideoUserBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserService")
public class UserService {
    @Autowired
    VideoUserDao videoUserDao;
    public VideoUserBean findByUsername(VideoUserBean videoUserBean){
        return videoUserDao.getUser(videoUserBean.getUserName());
    }
    public VideoUserBean findUserById(String userId) {
        return videoUserDao.getUserId(userId);
    }

}